Release 10.1A: OpenEdge Data Management:
SQL Reference
CONVERT (Progress extension)
Converts an expression to another data type. The first argument is the target data type. The second argument is the expression to be converted to that type.
The length option for the
data_typeargument specifies the length for conversions toCHARandVARCHARdata types. If omitted, the default is 30 bytes.If the expression evaluates to
NULL, the result of the function isNULL.The
CONVERTfunction syntax is similar to, but not compatible with, the ODBCCONVERTfunction. Enclose the function in the ODBC escape clause { fn } to specify ODBC-compliant syntax. See the ODBC compatibleCONVERTfunction for more information.Syntax
Example
The following SQL example uses the
CONVERTfunction to convert anINTEGERfield from a system table to a character string:
Note
Compatibility
Progress extension
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |